package com.booth.base.model;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
/***
 * 数据字典
 * @TypeName：DataDict
 * @description：
 * @author：Administrator
 */
public class DataDict extends Model<DataDict>
{
	private static final long	serialVersionUID = 1L;
	public static DataDict dao	= new DataDict();
	
	public int subCount( Integer depId )
	{
		if ( depId != null )
		{
			return(Db.queryLong( "select count(*) from data_dict where dat_id=?", new Object[] { depId } ).intValue() );
		}

		return(0);
	}
}